package basic4;

import java.util.Scanner;

public class J04_04 {

	public static void main(String[] args) {
			
			while(true){
			Scanner sc = new Scanner(System.in);
			System.out.print("거리를 입력하세요 : ");

			int sc1 = sc.nextInt();

			System.out.println(sc1 + "km");
			if (sc1<50) {
				System.out.println("10000원");
			}
			else if((sc1>=50)==(sc1<100)){
				System.out.println("18000원");
			}
			
			else if((sc1>=100)==(sc1<300)){
				System.out.println("55000원");
			}
			else if((sc1>=300)){
				System.out.println("75000원");
			}
			else System.out.println("범위 값 밖입니다.");
		}

	}
	}